package com.cskaoyan.bean.wx.vo;

import com.cskaoyan.bean.Cart;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @PROJECT_NAME: market_34th
 * @DESCRIPTION:
 * @Author: qiu
 * @DATE: 2021/10/22 10:26
 */
@NoArgsConstructor
@Data
public class CartIndexVO {

    @JsonProperty("cartTotal")
    private CartTotalDTO cartTotal;
    @JsonProperty("cartList")
    private List<Cart> cartList;

    @NoArgsConstructor
    @Data
    public static class CartTotalDTO {
        @JsonProperty("goodsCount")
        private Integer goodsCount; // 所有商品的【数量】总和
        @JsonProperty("checkedGoodsCount")
        private Integer checkedGoodsCount;  // 已选中商品的【数量】总和
        @JsonProperty("goodsAmount")
        private Integer goodsAmount;    // 所有商品的结算价格
        @JsonProperty("checkedGoodsAmount")
        private Integer checkedGoodsAmount; // 已选中商品的结算价格
    }

}
